package verappdesktop.core;

/**
 * Wrapper-class for the name and unit of a variable.
 */
public final class Variable {
	private String name, unit;
	
	private Variable(){}
	
	protected Variable(String name, String unit){
		this.name = name;
		this.unit = unit;
	}
	
	public String getName(){
		return name;
	}
	
	public String getUnit(){
		return unit;
	}
	
	@Override
	public boolean equals(Object o){
		if (!(o instanceof Variable)){
			return false;
		}
		Variable var = (Variable)o;
		return (var.name.equals(name) && var.unit.equals(unit));
	}
}
